﻿<%@ Page Language="C#" MasterPageFile="~/GoWLL.master" AutoEventWireup="true" CodeFile="CommunityMessage.aspx.cs" Inherits="CommunityMessage" Title="社区留言 - 我的社区 - G维网" %>
<%@ Register Src="CommunityMenu.ascx" TagName="CommunityMenu" TagPrefix="Menu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceMenu" Runat="Server">
    <Menu:CommunityMenu ID="CommunityMenu1" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceMainText" Runat="Server">
    <div id="contenttext">
        <form id="Form1" runat=server>
            <div class="bodytext" style="padding-left:24px;" align="justify">
            </div>
	        <div class="panel" align="justify">
		        <span class="orangetitle"><%=CommunityName%>社区留言</span>
                <br />
		        <span class="bodytext">
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GoWLLConnectionString %>">
                    </asp:SqlDataSource>
		         </span>
                <asp:GridView ID="GridView1" runat="server" EmptyDataText="社区没有留言。" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" BackColor="#F4F4F4" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="2px" CellPadding="3" Font-Size="13px" AllowPaging="True">
                    <RowStyle ForeColor="#000066" />
                    <Columns>
                        <asp:BoundField DataField="Message" HeaderText="留言" SortExpression="Message">
                            <ItemStyle Width="300px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MobileNumber" HeaderText="手机号码" SortExpression="MobileNumber">
 
                        </asp:BoundField>
                        <asp:BoundField DataField="InTime" HeaderText="时间" SortExpression="InTime">
            
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" Text='删除' CommandName='<%# Eval("ID") %>' OnClick="LinkButton1_Click" ></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#889966" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                </asp:GridView>
	        </div>
	    </form>
	</div>
</asp:Content>